package com.java.thread.demo.chapter2.HasSelfPrivateNum;

/**
 * Created by yiyongyao on 2017/12/19.
 *
 * 实例变量非线程安全...
 *
 */
public class TestMain {

    public static void main(String[] args) {

        HasSelfPrivateNum hspn = new HasSelfPrivateNum();

        ThreadA threada = new ThreadA(hspn);
        threada.start();
        ThreadB threadb = new ThreadB(hspn);
        threadb.start();

    }

}
